<?php

use app\modules\admin\widgets\gird\GridWidget;
use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel app\modules\admin\models\search\AuthRuleSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = '规则列表';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="row">
	<div class="col-sm-12">
    <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
    <?= GridWidget::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
		'title' => $this->title,
		'toolButtons' => [
				Html::a('新建规则', ['create'], ['class' => 'btn btn-success'])
		],
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'name',

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>
	</div>
</div>
